package bz.yfw.example.s3blazeds.part2.view
{
	import bz.yfw.example.s3blazeds.part2.view.state.EmpEditViewState;
	
	import spark.components.Button;
	import spark.components.Label;
	import spark.components.View;
	import spark.primitives.BitmapImage;
	
	/**
	 * 社員編集確認View
	 * @author tokufxug http://twitter.com/tokufxug
	 */ 
	public class EmpEditConfirmView extends View
	{
		[SkinPart]
		public var lblName:Label;
		
		[SkinPart]
		public var lblSex:Label;
		
		[SkinPart]
		public var lblBirthDate:Label;
		
		[SkinPart]
		public var lblAddress:Label;
		
		[SkinPart]
		public var lblTel:Label;
		
		[SkinPart]
		public var lblEmail:Label;
		
		[SkinPart]
		public var lblEnterCompanyDate:Label;
		
		[SkinPart]
		public var lblPosition:Label;
		
		[SkinPart]
		public var bmpimgShashin:BitmapImage;
		
		[SkinPart]
		public var btnEntry:Button;
		
		[SkinPart]
		public var btnBack:Button;
		
		private var requiredCurrentState:String;
		
		public function EmpEditConfirmView() {
			super.title = "確認画面";
		}
		
		public override function createReturnObject():Object {
			return data;
		}
		
		protected override function getCurrentSkinState():String{
			if (requiredCurrentState == null) {
				return EmpEditViewState.NORMAL_STATE;
			}
			return requiredCurrentState;
		}
	}
}